home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # ~4Dgifts/toolbox/sifttree shell script
- #
- # wherever this script is run from, the ~4Dgifts/toolbox/.oasisrc
- # file needs to be in the same directory;
- #
- # and, if necessary, explicitly [re]define the following 2 environment
- # variables:
- # TOOLBOXPATH is wherever the CD is mounted on yer machine,
- # OASISIIIPATH is wherever you have put the oasisIII binary.
- #
-
- SERVERSTARTED="0"
-
- TOOLBOXPATH=`pwd`
- OASISIIIPATH=`pwd`/searchtools
- LD_LIBRARY_PATH=/lib:/usr/lib:`pwd`/searchtools/lib
- export LD_LIBRARY_PATH
-
-
- # have to set paths locations for oksvr:
- FULPATH=$OASISIIIPATH
- export FULPATH
-
- # oasisIII's app-defaults trickee-dick "short-cut":
- if test -n "$XUSERFILESEARCHPATH"
- then
- XUSERFILESEARCHPATH="$OASISIIIPATH/%N:$XUSERFILESEARCHPATH"
- else
- XUSERFILESEARCHPATH="$OASISIIIPATH/%N"
- fi
- export XUSERFILESEARCHPATH
-
- # and the location of xpsview for oasisIII:
- XPSVIEW_ROOT=$TOOLBOXPATH/.util/xpsview
- export XPSVIEW_ROOT
-
- # see if server is already running
- if /bin/ps -e 2>/dev/null | /bin/grep oksvr > /dev/null 2>&1 ; then
- SERVERSTARTED="0"
- else
- $OASISIIIPATH/oksvr &
- SERVERSTARTED="1"
- fi
-
- # comment the OKSERVER environment variable out if you
- # want people to access oksvr/oasisIII from another machine.
- # (oasisIII/oksvr are a client/server relationship.)
- OKSERVER=localhost
- export OKSERVER
-
- # did we start an oksvr process...if so kill on exit
- if [ $SERVERSTARTED -eq "1" ]
- then
- $OASISIIIPATH/oasisIII -k &
- else
- $OASISIIIPATH/oasisIII &
- fi
-
-